package com.dslcode.cloud.provider.goods.mapper;


import com.dslcode.cloud.common.dto.goods.GoodsBuyDTO;
import com.dslcode.cloud.common.dto.goods.GoodsDTO;
import com.dslcode.cloud.common.model.goods.Goods;

import java.util.List;

/**
 * Created by dongsilin on 2017/9/21.
 */
public interface GoodsMapper {

    List<Goods> findAll();
    Goods findById(Long id);
    GoodsDTO findDetail(Long id);
    List<Goods> findByGoodsCommonId(Long goodsCommonId);

    Integer reduceStorage(GoodsBuyDTO goodsBuy);
}
